﻿@inherits System.Web.Mvc.WebViewPage<Pikapika.Models.NovelVolume>

@{
	ViewBag.Title = "NovelVolume - Create";
	
}

	@{Html.EnableClientValidation();}

	@using (Html.BeginForm()) {
		@Html.ValidationSummary(true)

		<fieldset>
			<legend>Fields</legend>
			
			<div class="editor-label">
				@Html.LabelFor(model => model.Name)
			</div>
			<div class="editor-field">
				@Html.TextBoxFor(model => model.Name)
				@Html.ValidationMessageFor(model => model.Name)
			</div>
			
			<div class="editor-label">
				@Html.LabelFor(model => model.NovelId)
			</div>
			<div class="editor-field">
				@Model.NovelId
				@Html.HiddenFor(model => model.NovelId)
			</div>
			
			<div class="editor-label">
				@Html.LabelFor(model => model.Description)
			</div>
			<div class="editor-field">
				@Html.TextAreaFor(model => model.Description)
				@Html.ValidationMessageFor(model => model.Description)
			</div>
			
			<div class="editor-label">
				@Html.LabelFor(model => model.ImageUrl)
			</div>
			<div class="editor-field">
				@Html.TextBoxFor(model => model.ImageUrl, new { id = "image-url" })
				@Html.ValidationMessageFor(model => model.ImageUrl)
			</div>
			
			<div class="editor-label">
				@Html.LabelFor(model => model.SortIndex)
			</div>
			<div class="editor-field">
				@Html.TextBoxFor(model => model.SortIndex)
				@Html.ValidationMessageFor(model => model.SortIndex)
			</div>
			
			<p>
				<input type="submit" value="Create" />
			</p>
		</fieldset>

	}

	<div>
		@Html.ActionLink("Back to List", "Index", new { novelId = Model.NovelId })
	</div>

	
	
@section Head {
	@Html.Partial("_ImageUploader", "#image-url")
}
